package com.jyxd.web.data.patient;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 患者转移信息
 */
@Entity
@Table(name = "p_patient_transfer")
@Data
public class PatientTransfer implements Serializable {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    /**
     * 病人唯一住院号
     */
    @Column(name = "visit_id")
    private String visitId;
    /**
     * 本次住院号
     */
    @Column(name = "visit_code")
    private String visitCode;
    /**
     * 转入科室编号
     */
    @Column(name = "in_office")
    private String inOffice;
    /**
     * 转出科室编号
     */
    @Column(name = "out_office")
    private String outOffice;
    /***
     * 床位编号
     */
    @Column(name = "bed_code")
    private String bedCode;
    /**
     * 转移时间
     */
    @Column(name = "transfer_time")
    private Date transferTime;
    /**
     * 操作人code
     */
    @Column(name = "patient_id")
    private String patientId;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
    /**
     * 状态（0：禁用 1：正常 -1：删除）
     */
    @Column(name = "status")
    private int status;

}
